/**
 * 
 */
package com.ydy.ienum;

import com.ydy.ienum.base.IErrorEnum;

/**
 * @author xuzhaojie
 *
 *         2018年11月12日 上午9:41:48
 */
public enum EnumEmail implements IErrorEnum {
	REC_EMPTY(1600, "邮件收件人不可为空"),
	SUBJECT_EMPTY(1601, "邮件标题不可为空"),
	CONTENT_EMPTY(1602, "邮件内容不可为空"),
	EAMIL_FORMAT_NOT_FIT(1603, "邮件收件地址格式不正确"),
	SEND_EAMIL_ERROR(1604, "邮件发送失败");

	private Integer code;
	private String msg;

	private EnumEmail(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMsg() {
		return msg;
	}

}
